import request from '@/utils/request'

export function getNewsList(data){
    return request({
      url:'/newslist',
      method:'get',
      params:data
   });
}

export function editNews(data){
    return request({
       url:'/editnews',
       method:'post',
       data:qs.stringify(data)
    });
}

export function getNewsInfo(data){
    return request({
       url:'/newsinfo',
       method:'get',
       params:data
    });
}

export function delNews(data){
    return request({
       url:'/delnews',
       method:'get',
       params:data
    });
}

export function getAllNewsType(){
    return request({
       url:'/allnewstype',
       method:'get'
    });
}
